﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace DFGK_WMS.Model.DTO
{
    public class MESReceivingDto
    {
        /// <summary>
        /// key
        /// </summary>
        public string Key {  get; set; }


        /// <summary>
        /// ⼊库单号
        /// </summary>
        public string orderCode { get; set; }

        /// <summary>
        /// 公司编码
        /// </summary>
        public string companyCode { get; set; }

        /// <summary>
        /// 公司名称
        /// </summary>
        public string companyName { get; set; }

        /// <summary>
        /// ⼯⼚编码
        /// </summary>
        public string factoryCode { get; set; }

        /// <summary>
        /// ⼯⼚名称 
        /// </summary>
        public string factoryName { get; set; }

        /// <summary>
        /// 源单号
        /// </summary>
        public string sourceOrderCode { get; set; }

        /// <summary>
        /// 源单号类型
        /// </summary>
        public string sourceOrderType { get; set; }

        /// <summary>
        /// 移动类型编码
        /// </summary>
        public string moveCode { get; set; }

        /// <summary>
        /// 移动类型名称
        /// </summary>
        public string moveName { get; set; }

        /// <summary>
        /// 凭证⽇期
        /// </summary>
        public DateTime voucherDate { get; set; }

        public List<MESReceivingDetailDto> items { get; set; } = new List<MESReceivingDetailDto>();
             
    }

    public class MESReceivingDetailDto
    {
        /// <summary>
        /// 行项目
        /// </summary>
        public decimal number { get; set; }

        /// <summary>
        /// 源单⾏项⽬
        /// </summary>
        public decimal sourceOrderItemCode { get; set; }

        /// <summary>
        /// ⼯⼚编码
        /// </summary>
        public string factoryCode { get; set; }

        /// <summary>
        /// 工厂名称
        /// </summary>
        public string factoryName { get; set; }

        /// <summary>
        /// 物料编码
        /// </summary>
        public string goodsCode { get; set; }

        /// <summary>
        /// 物料名称
        /// </summary>
        public string goodsName { get; set; }

        /// <summary>
        /// 规格型号
        /// </summary>
        public string goodsSpec { get; set; }

        /// <summary>
        /// 批次号
        /// </summary>
        public string batchNum { get; set; }

        /// <summary>
        /// 库存地点编码
        /// </summary>
        public string stockAddrCode { get; set; }

        /// <summary>
        /// 库存地点名称
        /// </summary>
        public string stockAddrName { get; set; }

        /// <summary>
        /// ⼊库数量
        /// </summary>
        public decimal warehousingNum { get; set; }

        /// <summary>
        /// 库存单位编码
        /// </summary>
        public string stockUnitCode { get; set; }

        /// <summary>
        /// 库存单位名称
        /// </summary>
        public string stockUnitName { get; set; }
    }
}
